package com.mofang.ticketing.common.core.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页查询对象
 *
 * @author LGC
 * @date 2021/7/22 14:19
 */
@ApiModel(description = "分页查询对象")
@Data
public class PageQuery implements Serializable {

    private static final long serialVersionUID = 1747120450210245122L;

    @ApiModelProperty("分页查询对象")
    private BasePageQuery page;

    public <T> Page<T> getPage() {
        return PageFactory.getPageByPageQuery(page);
    }
}
